package com.deer.wms.base.system.service.ware.impl;

import com.deer.wms.base.system.dao.ware.WareConveyorMapper;
import com.deer.wms.base.system.model.ware.WareConveyor;
import com.deer.wms.base.system.service.ware.WareConveyorService;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WareConveyorServiceImpl extends AbstractService<WareConveyor, Integer> implements WareConveyorService {

    @Resource
    private WareConveyorMapper wareConveyorMapper;

    @Override
    public List<WareConveyor> findList(WareConveyor wareConveyor) {
        return wareConveyorMapper.findList(wareConveyor);
    }

    @Override
    public int startState(Integer id) {
        return wareConveyorMapper.startState(id);
    }

    @Override
    public int endState(Integer id) {
        return wareConveyorMapper.endState(id);
    }

    @Override
    public int editWareConveyor(WareConveyor wareConveyor) {
        return wareConveyorMapper.editWareConveyor(wareConveyor);
    }

    @Override
    public int saveWareConveyor(WareConveyor wareConveyor) {
        return wareConveyorMapper.saveWareConveyor(wareConveyor);
    }
}
